package huajiu.com.controller;

import huajiu.com.domain.DoctorSolution;
import huajiu.com.service.DoctorSolutionService;

import java.util.ArrayList;
import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class DoctorSolutionController {

	
	@Autowired
	private DoctorSolutionService doctorSolutionService;
	
	@ResponseBody
	@RequestMapping(value = "/getDoctorList.do", method = RequestMethod.GET)
	public List<DoctorSolution> showSolution()  {
		List<DoctorSolution> doctorSolutions = new ArrayList<DoctorSolution>();
		doctorSolutions=doctorSolutionService.getDoctorSolutions();
		return doctorSolutions;
	}
}
